package com.yjd.bi.user.service;

import java.util.Map;

import com.yjd.bi.report.enums.TimeType;
import com.yjd.bi.report.model.EChartsModel;
import com.yjd.bi.user.model.UserStatisticsModel;
import com.yjd.comm.base.service.IBaseService;

/**
 * <b>description</b>：客户消息订单业务接口<br>
 * <b>time</b>：2016-04-12 14:45:09 <br>
 * <b>author</b>： zhoujin
 */
public interface IUserStatisticsService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public UserStatisticsModel insert(UserStatisticsModel model)
			throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(UserStatisticsModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

	/**
	 * 总览
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public Integer getSummary(Map<String, Object> paramMap)
			throws Exception;

	/**
	 * 统计
	 * 
	 * @param timeType
	 * @param timeFrom
	 * @param field
	 * @return
	 * @throws Exception
	 *             EChartsModel
	 */
	public EChartsModel getDates(TimeType timeType, Long timeFrom, String field)
			throws Exception;

	/**
	 * 微信用户统计
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public Integer wxBindCount(Map<String, Object> paramMap)
			throws Exception;
	
}
